#!/usr/bin/python#
# -*- encoding=utf-8 -*-


class Enum:
    """"枚举"""

    def __init__(self, name, value):
        self.__name = name
        self.__value = value

    @property
    def name(self):
        """名称"""
        return self.__name

    @property
    def value(self):
        """值"""
        return self.__value

    pass


class OnlineStatus(Enum):
    """在线状态"""
    ONLINE = Enum(u"在线", 0)
    TRAINED = Enum(u"培训", 4)
    OFFLINE = Enum(u"离线", 5)
    pass
